package com.zc.study.designPattern.结构型设计模式.proxyPattern.dynamicProxy;

//具体DocumentDAO类:真实角色
public class DocumentDAO implements AbstarctDocumentDAO {
    @Override
    public boolean deleteDocumentById(String documentId) {
        if (documentId.equalsIgnoreCase("D001")) {
            System.out.println("删除ID为" + documentId + "的文档信息成功!");
            return true;
        } else {
            System.out.println("删除ID为" + documentId + "的文档信息失败!");
            return false;
        }
    }
}
